package graph.model;

/**
 * Represents a vertex of a graph.
 *
 * @author shankar
 *
 */
public class Vertex {

	char data;
	int key;
	boolean visited;

	public Vertex(int key, char data) {
		this.key = key;
		this.data = data;
	}

	public char getData() {
		return data;
	}

	public void setData(char data) {
		this.data = data;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public boolean isVisited() {
		return visited;
	}

	public void setVisited(boolean visited) {
		this.visited = visited;
	}

}
